<?php

function smarty_modifier_display_status($status) {
    if ($status == 1 || $status == true) {
        return '<span class="online">Online</span>';
    }
    return '<span class="offline">Offline</span>';
}

?>